<template>
  <div class="notfound-contaioner">
    <h2>404 not found</h2>
    <van-button type="primary" @click="toHome">返回首页</van-button>
  </div>
</template>

<script>
export default {
  name: "notfound",
  methods: {
    toHome() {
      this.$router.push({ path: "/home" });
    },
  },
};
</script>

<style lang="less">
.notfound-contaioner {
  padding-top: 30px;
  text-align: center;
  .van-button {
    margin-top: 40px;
  }
}
</style>